#ifndef __TASK_QUEUE__
#define __TASK_QUEUE__

#include "send.h"

typedef struct node_s{
    int netfd;
    TLV_t tlv;
    struct node_s* next;
}node_t;

typedef struct taskQueue_s{
    node_t* front;
    node_t* rear;
    int cursize;
}taskQueue_t;

int taskQueueInit(taskQueue_t* p_taskQueue);
int enqueue(taskQueue_t* p_taskQueue,int netfd,TLV_t* tlv);
int dequeue(taskQueue_t* p_taskQueue);

#endif
